<?php
/**
 * Created by @baidu-aip
 * Author: ylang
 * Time: 2022/2/24 12:42
 */

namespace Hedgehog\BaiduAip\Exception;

class Exception extends \Exception
{

    public static function error(string $message, int $code=0, $previous = null)
    {
        throw new static($message, $code, $previous);
    }

}